import request from '@/utils/request';
//获取用户填写记录
export async function fetchTempUpgradePlanRecord(params) {
    return request('/marketing/tempUpgradePlanRecord/listTempUpgradePlanRecord', {
        params,
    });
}
//获取我的会话标题
export async function fetchListMyChatTitle(params) {
    return request('/gpt/listMyChatTitle', {
        params,
    });
}
//获取会话内容
export async function fetchListTitleChat(params) {
    return request('/gpt/listTitleChat', {
        params,
    });
}
//员工开启会话
export async function fakeAdminStartChat(data) {
    return request('/gpt/adminStartChat', {
        method: 'post',
        data,
    });
}
//删除会话
export async function fakeRemoveChatTitle(data) {
    return request('/gpt/removeChatTitle', {
        method: 'post',
        data,
    });
}
//修改会话标题
export async function fakeRenameChatTitle(data) {
    return request('/gpt/renameChatTitle', {
        method: 'post',
        data,
    });
}
//点赞/踩会话
export async function fakeLikeChat(data) {
    return request('/gpt/likeChat', {
        method: 'post',
        data,
    });
}


//获取我的会话标题
export async function fetchAnalysisMyChatTitle(params) {
    return request('/user/ai/analysis/listMyChatTitle', {
        params,
    });
}

//获取会话内容
export async function fetchAnalysisListTitleChat(params) {
    return request('/user/ai/analysis/listTitleChat', {
        params,
    });
}

//删除会话
export async function fakeAnalysisSaveUserAiAnalysisChatTitleWithChat(data) {
    return request('/user/ai/analysis/saveUserAiAnalysisChatTitleWithChat', {
        method: 'post',
        data,
    });
}

//生成流会话id
export async function fakeAdminChat(data) {
    return request('/gpt/saveChat', {
        method: 'post',
        data,
    });
}



//生成流会话id
export async function fakeAnalysisRenameChatTitle(data) {
    return request('/user/ai/analysis/renameChatTitle', {
        method: 'post',
        data,
    });
}



//生成流会话id
export async function fakeAnalysisRemoveChatTitle(data) {
    return request('/user/ai/analysis/removeChatTitle', {
        method: 'post',
        data,
    });
}



//根据id获取回话id
export async function fetchChatByAiChatId(params) {
    return request('/gpt/getChatByAiChatId', {
        params,
    });
}




//获取校区配置
export async function fetchListCampus(params) {
    return request('/teach/campus/listCampus', {
        params,
    });
}

//保存校区配置
export async function fakeSaveCampus(data) {
    return request('/teach/campus/saveCampus', {
        method: 'post',
        data,
    });
}


//删除校区
export async function fakeRemoveCampus(data) {
    return request('/teach/campus/removeCampus', {
        method: 'post',
        data,
    });
}



//获取教室配置
export async function fetchListCampusClassroom(params) {
    return request('/teach/campusClassroom/listCampusClassroom', {
        params,
    });
}

//保存教室配置
export async function fakeSaveCampusClassroom(data) {
    return request('/teach/campusClassroom/saveCampusClassroom', {
        method: 'post',
        data,
    });
}


//删除教室配置
export async function fakeRemoveCampusClassroom(data) {
    return request('/teach/campusClassroom/removeCampusClassroom', {
        method: 'post',
        data,
    });
}

//获取默认排班配置
export async function fetchListSchedule(params) {
    return request('/teach/schedule/listSchedule', {
        params,
    });
}

//保存教室配置
export async function fakeSaveSchedule(data) {
    return request('/teach/schedule/saveSchedule', {
        method: 'post',
        data,
    });
}


//删除教室配置
export async function fakeRemoveSchedule(data) {
    return request('/teach/schedule/removeSchedule', {
        method: 'post',
        data,
    });
}



//获取科目
export async function fetchListSubject(params) {
    return request('/teach/subject/listSubject', {
        params,
    });
}

//保存科目
export async function fakeSaveSubject(data) {
    return request('/teach/subject/saveSubject', {
        method: 'post',
        data,
    });
}


//删除教室科目
export async function fakeRemoveSubject(data) {
    return request('/teach/subject/removeSubject', {
        method: 'post',
        data,
    });
}





//获取标签配置
export async function fetchListTeacherTag(params) {
    return request('/teach/tag/listTeacherTag', {
        params,
    });
}

//保存标签配置
export async function fakeSaveTeacherTag(data) {
    return request('/teach/tag/saveTeacherTag', {
        method: 'post',
        data,
    });
}


//删除标签配置
export async function fakeRemoveTeacherTag(data) {
    return request('/teach/tag/removeTeacherTag', {
        method: 'post',
        data,
    });
}




//获取老师列表
export async function fetchListTeacher(params) {
    return request('/teach/teacher/listTeacher', {
        params,
    });
}




//获取老师详情
export async function fetchTeacherDetail(params) {
    return request('/teach/teacher/getTeacherDetail', {
        params,
    });
}


//保存老师
export async function fakeSaveTeacher(data) {
    return request('/teach/teacher/saveTeacher', {
        method: 'post',
        data,
    });
}


//设置老师推荐状态
export async function fakeSetRecommended(data) {
    return request('/teach/setRecommended', {
        method: 'post',
        data,
    });
}


//启用老师
export async function fakeEnableTeacher(data) {
    return request('/teach/enableTeacher', {
        method: 'post',
        data,
    });
}


//禁用老师
export async function fakeDisableTeacher(data) {
    return request('/teach/disableTeacher', {
        method: 'post',
        data,
    });
}




//获取老师答疑配置
export async function fetchListTeacherQaConfig(params) {
    return request('/teach/qaConfig/listTeacherQaConfig', {
        params,
    });
}


//设置老师答疑配置
export async function fakeSaveTeacherQaConfig(data) {
    return request('/teach/teachingModeConfig/saveTeacherTeachingModeConfig', {
        method: 'post',
        data,
    });
}



//获取老师排班列表
export async function fetchListTeacherSchedule(params) {
    return request('/teach/scheduleConfig/listTeacherSchedule', {
        params,
    });
}


//获取老师排班详情
export async function fetchTeacherScheduleDetail(params) {
    return request('/teach/scheduleConfig/getTeacherScheduleDetail', {
        params,
    });
}

//保存老师排班配置
export async function fakeSaveTeacherScheduleConfig(data) {
    return request('/teach/scheduleConfig/saveTeacherScheduleConfig', {
        method: 'post',
        data,
    });
}


//获取答疑配置
export async function fetchGetSubjectQaConfig(params) {
    return request('/subjectQa/getSubjectQaConfig', {
        params,
    });
}

//保存老师排班配置
export async function fakeSaveSubjectQaConfig(data) {
    return request('/subjectQa/saveSubjectQaConfig', {
        method: 'post',
        data,
    });
}


//获取答疑配置
export async function fetchListUserQaAmountPriceConfig(params) {
    return request('/userQaPrice/listUserQaAmountPriceConfig', {
        params,
    });
}

//获取配置详情
export async function fetchUserQaAmountPriceConfigDetail(params) {
    return request('/userQaPrice/getUserQaAmountPriceConfigDetail', {
        params,
    });
}
//保存用户答疑次数价格配置
export async function fakeSaveUserQaAmountPriceConfig(data) {
    return request('/userQaPrice/saveUserQaAmountPriceConfig', {
        method: 'post',
        data,
    });
}

//保存用户答疑次数价格配置
export async function fakeRemoveUserQaAmountPriceConfig(data) {
    return request('/userQaPrice/removeUserQaAmountPriceConfig', {
        method: 'post',
        data,
    });
}


//获取AI回答状态
export async function fetchCheckChatFlag(params) {
    return request('/gpt/checkChatFlag', {
        params,
    });
}




//获取机构答疑列表
export async function fetchListUserQa(params) {
    return request('/userQa/listUserQa', {
        params,
    });
}

//获取机构答疑详情
export async function fetchListLastUserQaRecord(params) {
    return request('/userQa/listLastUserQaRecord', {
        params,
    });
}

//回复
export async function fakeChatUserQa(data) {
    return request('/userQa/chatUserQa', {
        method: 'post',
        data,
    });
}


//获取聊天记录
export async function fetchUserQaRecord(params) {
    return request("/userQa/listUserQaRecord", {
        params,
    });
};



//获取互助答疑列表
export async function fetchUserHelpQaForAdmin(params) {
    return request("/helpQa/listUserHelpQaForAdmin", {
        params,
    });
};



//切换精选状态
export async function fakeUserQaChangeHandpicked(data) {
    return request('/userQa/userQaChangeHandpicked', {
        method: 'post',
        data,
    });
}

//回答答疑
export async function fakeSaveHelpQaAnswer(data) {
    return request('/helpQa/saveHelpQaAnswer', {
        method: 'post',
        data,
    });
}


//查询用户互动答疑回答
export async function fetchListUserHelpQaAnswerForAdmin(params) {
    return request("/helpQa/listUserHelpQaAnswerForAdmin", {
        params,
    });
};


//查询用户互动答疑评论-机构端查询用
export async function fetchUserHelpQaAnswerCommentForAdmin(params) {
    return request("/helpQa/listUserHelpQaAnswerCommentForAdmin", {
        params,
    });
};



//查询用户互动答疑回答详情-机构的查询
export async function fetchUserHelpQaAnswerByIdForAdmin(params) {
    return request("/helpQa/getUserHelpQaAnswerByIdForAdmin", {
        params,
    });
};

//互助答疑精选
export async function fakeUserHelpQaChangeHandpicked(data) {
    return request('organization/helpQa/userHelpQaChangeHandpicked', {
        method: 'post',
        data,
    });
}

//切换老师
export async function fakeUserQaChangeTeacher(data) {
    return request('/userQa/userQaChangeTeacher', {
        method: 'post',
        data,
    });
}

//查询用户互动答疑回答详情-机构的查询
export async function fetchListQaAmountRecord(params) {
    return request("/userQa/listQaAmountRecord", {
        params,
    });
};


